package com.cos.fegin.api;

import com.cos.vo.GoodsTypes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "goods")
public interface GoodsTypeService {
    @RequestMapping("/goodsType/getList")
    List<GoodsTypes> getList();

    @RequestMapping("/goodsType/addGoodsType")
    public boolean addGoodsType(@RequestBody GoodsTypes goodsTypes);
    @RequestMapping("/goodsType/updateGoodsType")
    boolean updateGoodsType(@RequestBody GoodsTypes goodsTypes);
    @RequestMapping("/goodsType/deleteById")
    boolean deleteById(@RequestBody Integer id);
}
